-- GENERATED SPELL FOR [Avian Darkhawk] --


function spell0_19429(pUnit, Event) --@Carnivorous Bite,n/a--
pUnit:FullCastSpellOnTarget(32901,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19429', 15000, 1)
end

function spell1_19429(pUnit, Event) --@Carnivorous Bite,n/a--
pUnit:FullCastSpellOnTarget(39198,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19429', 15000, 1)
end

function spell2_19429(pUnit, Event) --@Sonic Charge,n/a--
pUnit:FullCastSpellOnTarget(38059,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19429', 626, 1)
end

function spell3_19429(pUnit, Event) --@Sonic Charge,n/a--
pUnit:FullCastSpellOnTarget(39197,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19429', 610, 1)
end

function Sorts_19429(pUnit, Event)
local choix_sorts_19429 = math.random(0, 3)
if choix_sorts_19429 == 0 then
pUnit:RegisterEvent('spell0_19429', 1, 1)
end
if choix_sorts_19429 == 1 then
pUnit:RegisterEvent('spell1_19429', 1, 1)
end
if choix_sorts_19429 == 2 then
pUnit:RegisterEvent('spell2_19429', 1, 1)
end
if choix_sorts_19429 == 3 then
pUnit:RegisterEvent('spell3_19429', 1, 1)
end
end

function mob19429_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19429', math.random(1500, 3000), 1)
end

function mob19429_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19429_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19429_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19429, 1, 'mob19429_Action')
RegisterUnitEvent(19429, 2, 'mob19429_Leave')
RegisterUnitEvent(19429, 3, 'mob19429_Kill')
RegisterUnitEvent(19429, 4, 'mob19429_Die')
